package com.slfx.idgen.server.config;

import com.slfx.idgen.server.snowflake.SnowflakeIdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @fileName: IdGenConfig
 * @author: zengqingfa
 * @date: 2023/1/6 10:45
 * @description:
 */
@Configuration
public class IdGenConfig {

    @Bean
    public SnowflakeIdWorker snowflakeIdWorker() {
        return new SnowflakeIdWorker(1, 2);
    }
}
